package com.zy.oop1118;

/**
 * @Author GongXL
 * @Description TODO
 * @dATE 2021/11/18 10:04
 **/
public class Student extends Person {
    private String school;

    public Student(String name, int age, String s) {
        super(name, age);
        school = s;
    }

    public Student(String name, String s) {
        super(name);

        school = s;

    }

    public Student(String s) { // 编译出错: no super(),系统将调用父类
//        无参数的构造方法。


        school = s;

    }
}

